home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 115 / macaddict115.cdr / Software / Productivity / TextWrangler_2.1.1.dmg / TextWrangler.app / Contents / Resources / TextWrangler.rsrc / TEXT_256_Default Grep Patterns.txt < prev    next >
Text File  |  2005-11-17  |  518b  |  41 lines

  1. Pascal Comment to C Comment
  2. {([^}]*)}
  3. /* \1 */
  4.  
  5. C++ Comment to C Comment
  6. //(.*)
  7. /* \1 */
  8.  
  9. Run of Spaces to One Tab
  10.  +
  11. \t
  12.  
  13. C Function Header
  14. ^[^ \t#\r/@][^\r]*\([^\r]*\)$
  15.  
  16. C Comment to Pascal Comment
  17. /\*([^\r]*)\*/
  18. {\1}
  19.  
  20. Shift Variables Right
  21. (.*)(\t\t*)(.*)
  22. \1\2\t\3
  23.  
  24. Shift Variables Left
  25. (.*)(\t)(\t*)(.*)
  26. \1\3\4
  27.  
  28. Lower Case SRC values in IMG tags
  29. (<img [^>]*src\s*=\s*")([^"]+)("[^>]*>)
  30. \1\L\2\E\3
  31.  
  32. Lower Case HREF values in A tags
  33. (<a [^>]*href\s*=\s*")([^"]+)("[^>]*>)
  34. \1\L\2\E\3
  35.  
  36. Column #2
  37. ^[^\t]+\t([^\t]+)
  38. \1
  39.  
  40.  
  41.